package cn.hbu.zlfw.dic.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.hbu.zlfw.dic.dao.DicSchoolDao;
import cn.hbu.zlfw.dic.entity.DicPrimarySubject;
import cn.hbu.zlfw.dic.entity.DicSchool;
import cn.hbu.zlfw.common.base.service.impl.BaseServiceImpl;
import cn.hbu.zlfw.common.util.PageModel;
import cn.hbu.zlfw.dic.service.DicSchoolService;
/**
 * 
 * @ClassName: DicSchoolServiceImpl 
 * @Description: 单位字典表service接口实现
 * @author 王鹏伟<1223443289@qq.com>
 * @date 2017年11月28日 下午11:54:04 
 * @vsersion:v1.0
 */
@Service("dicSchoolService")
@Transactional
public class DicSchoolServiceImpl extends BaseServiceImpl<DicSchool, String> implements DicSchoolService{
	
	@Autowired
	private DicSchoolDao dicSchoolDao;
	/*
	 * (non-Javadoc)
	 * @see cn.hbu.zlfw.dic.service.DicSchoolService#listSchoolsToRoot(cn.hbu.zlfw.common.util.PageModel)
	 */
	@Override	
	public PageModel<DicSchool> listSchoolsToRoot(PageModel<DicSchool> pageModel) {
		return this.dicSchoolDao.listSchoolsToRoot(pageModel);
	}
	
	@Override
	public String getSchoolByCode(Integer typeCode) {
		return this.dicSchoolDao.getSchoolByCode(typeCode);
	}
}
